import { defineStore, storeToRefs } from 'pinia'

const store = defineStore('store', {
    state: () => ({
        count: 0
    }),
    persist: {
        enabled: true,
        strategies: [{ storage: localStorage }]
    }
})

export default storeToRefs(store())